﻿<button class="btn btn-danger" @onclick="ShowConfirm">@textvalue</button>

@if (showConfirm)
{
    <div class="alert alert-warning">
        <p>@Name : Are you sure you want to delete?</p>
        <button class="btn btn-secondary" @onclick="Cancel">Cancel</button>
        <button class="btn btn-danger" @onclick="Confirm">Yes</button>
    </div>
}